package com.test.event.listen;

import com.test.event.UserRegisterEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Service;

/**
 * @author LuHuanCheng
 * 类说明：优惠券监听类
 */
@Service
public class CouponService implements ApplicationListener<UserRegisterEvent> {
    @Override
    public void onApplicationEvent(UserRegisterEvent userRegisterEvent) {
        System.out.println("优惠券监听到用户注册事件");
    }
}